import request from '/@/utils/request'

// 菜单路由
export const menuRoute = (params?: any) => request.get('/auth/menu/route', params);

// 菜单列表
export const menuLists = (params?: any) => request.get('/auth/menu/lists', params);

// 菜单全部
export const menuAll = (params?: any) => request.get('/auth/menu/all', params);

// 添加菜单
export const menuAdd = (params?: any) => request.post('/auth/menu/add', params);

// 编辑菜单
export const menuEdit = (params?: any) => request.post('/auth/menu/edit', params);

// 菜单删除
export const menuDelete = (params?: any) => request.delete('/auth/menu/delete', params);

//  菜单详情
export const menuDetail = (params?: any) => request.get('/auth/menu/detail', params);

// 菜单权限
export const menuAuth = (params?: any) => request.get('/auth/menu/auth', params);